package com.jiang.剑指Offer.动态规划.NC261;

/**
 * @author Jiang
 * @version 1.0
 * @date 2024/12/12 13:05
 */
public class Solution {
    /**
     * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
     *
     *
     * @param number int整型
     * @return int整型
     */
    public int jumpFloorII (int number) {
        if (number == 0 || number == 1) return 1;
        int res = 0;
        for(int i = number; i > 0; i--) {
            res += jumpFloorII(number - i);
        }
        return res;
    }

}
